	<!-- 本示例未包含完整css，获取外链css请参考上文，在hello uni-app项目中查看 -->
	<template>
		<view class="bd">
			
			<!--完善个人信息表单-->
			<view>
				<form @submit="formSubmit" @reset="formReset">
					<view class="uni-form-item uni-column">
						<view class="title">switch</view>
						<view>
							<switch name="switch" />
						</view>
					</view>
					<view class="uni-form-item uni-column">
						<view class="title">radio</view>
						<radio-group name="radio">
							<label>
								<radio value="radio1" /><text>选项一</text>
							</label>
							<label>
								<radio value="radio2" /><text>选项二</text>
							</label>
						</radio-group>
					</view>
					<view class="uni-form-item uni-column">
						<view class="title">checkbox</view>
						<checkbox-group name="checkbox">
							<label>
								<checkbox value="checkbox1" /><text>选项一</text>
							</label>
							<label>
								<checkbox value="checkbox2" /><text>选项二</text>
							</label>
						</checkbox-group>
					</view>
					<view class="uni-form-item uni-column">
						<view class="title">slider</view>
						<slider value="50" name="slider" show-value></slider>
					</view>
					<view class="uni-form-item uni-column">
						<view class="title">input</view>
						<input class="uni-input" name="input" placeholder="这是一个输入框" />
					</view>
					<view class="uni-btn-v">
						<button form-type="submit">Submit</button>
						<button type="default" form-type="reset">Reset</button>
					</view>
				</form>
			</view>
		
			
			<view class="person-msg-all">
				<!--头像展示上传-->
				<view class="person-pic-all">
					<image src="../../static/logo.png" class="person-pic">  </image>
					<view class="person-pic-text">更换头像></view>
				</view>
				<view>昵称：</view>
			</view>

		
		</view>
	</template>
<style>
	.person-pic-text{
		display: flex;
		align-items: center;
		right: 10rpx;
	}
	.person-pic{
		margin-left: 30rpx;
		margin-top: 30rpx;
		width: 130rpx;
		height: 130rpx;
		border-radius: 10%;
	}
	.person-pic-all{
		justify-content: space-between;
		display: flex;
		height: 200rpx;
		background-color: beige;
	}
	.bd{
		width: 100%;
		height: 100%;
	}
	.person-msg-all{
		height: 1000px;
		width: 90%;
		margin: auto;
		background-color: aqua;
	}
	.uni-form-item .title {
		padding: 20rpx 0;
	}
</style>
<script>
	export default {
		data() {
			return {
			}
		},
		methods: {
			formSubmit: function(e) {
				console.log('form发生了submit事件，携带数据为：' + JSON.stringify(e.detail.value))
				var formdata = e.detail.value
				uni.showModal({
					content: '表单数据内容：' + JSON.stringify(formdata),
					showCancel: false
				});
			},
			formReset: function(e) {
				console.log('清空数据')
			}
		}
	}
</script>


